
package JET.Frames.DataModels;

import JET.Centers.ControlCenter;

/**
 *
 * @author 057Ry
 */
public class DataModelsFactory
{
    static final ControlCenter CC = ControlCenter.getInstance();

    private static TorquesListModel     torquesListModel;
    private static ActionsListModel     actionsListModel;
    private static ScriptsListModel     scriptsListModel;
    private static SceneTreeModel       sceneTreeModel;
    private static SceneItemsTreeModel  sceneItemsTreeModel;
    private static ProjectTreeModel     projectTreeModel;

    public static TorquesListModel getTorquesListModel() {
        if (torquesListModel==null)
            torquesListModel = new TorquesListModel();
        return torquesListModel;
    }

    public static ActionsListModel getActionsListModel() {
        if (actionsListModel==null)
            actionsListModel = new ActionsListModel();
        return actionsListModel;
    }

    public static ScriptsListModel getScriptsListModel() {
        if (scriptsListModel==null)
            scriptsListModel = new ScriptsListModel();
        return scriptsListModel;
    }
    
    public static SceneTreeModel getSceneTreeModel() {
        if (sceneTreeModel==null)
            sceneTreeModel = new SceneTreeModel();
            
        return sceneTreeModel;
    }

    public static SceneItemsTreeModel getSceneItemsTreeModel() {
        if (sceneItemsTreeModel==null)
            sceneItemsTreeModel = new SceneItemsTreeModel();

        return sceneItemsTreeModel;
    }

    public static ProjectTreeModel getProjectTreeModel() {
        if (projectTreeModel==null)
            projectTreeModel = new ProjectTreeModel();
            
        return projectTreeModel;
    }
}
